<template>
  <div class="shopset">
    <div class="page_content padding_20">
      <div class="content_title"><span>账号设置</span></div>
      <div style="padding: 20px 0;">
        <div class="ad_item" style="align-items: center;"><span>用户名</span><span class="must_icon">必填</span></div>
        <el-input v-model="name" placeholder="请输入内容" />
      </div>
      <div style="padding: 20px 0;">
        <div class="ad_item" style="align-items: center;"><span>密码</span></div>
        <el-input v-model="content" placeholder="请输入" />
      </div>

      <div class="page_foot padding_20">
        <div>
          <el-button type="primary" @click="">保 存</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import {
  getShopDetail, logoEdit
} from '@/api/shop'
export default {
  data() {
    return {

      name: '',
      content: '',
      id: ''

    }
  },
  created() {
    this.getData()
  },
  methods: {
    getData() {
      getShopDetail().then(res => {
        this.imageUrl = res.detail.logo
        this.name = res.detail.name
        this.id = res.detail.id
        this.content = res.detail.content
      })
    },
    saveshopinfo() {
      logoEdit({ frames: 1, name: this.name, content: this.content, files: this.imgFile }).then(res => {
        if (res.detail.status == 1) {
          this.$message({
            message: '操作成功',
            type: 'success'
          })
        }
      })
    }

  }
}
</script>
<style>
	.avatar-uploader .el-upload {
	    border: 1px dashed #d9d9d9;
	    border-radius: 6px;
	    cursor: pointer;
	    position: relative;
	    overflow: hidden;
	  }
	  .avatar-uploader .el-upload:hover {
	    border-color: #409EFF;
	  }
	  .avatar-uploader-icon {
	    font-size: 28px;
	    color: #8c939d;
	    width: 178px;
	    height: 178px;
	    line-height: 178px;
	    text-align: center;
	  }
	  .avatar {
	    width: 178px;
	    height: 178px;
	    display: block;
	  }
</style>
<style lang="less" scoped>
.padding_20{
	padding: 20px;
}
.must_icon{
	color: #fff;
	background: #FF4D51;
	padding: 4px;
	font-size: 12px;
}

.shopset{
	padding: 20px;
	min-height: 100%;
}

.page_content{
	border: 1px solid #E5E9F2;
	background: #fff;
	.detail_content{
		.top_nav{
			margin: 10px 0 20px 0;
			.left{
				font-size: 14px;
				color: #ccc;
				height: 40px;
				display: flex;
				align-items: center;
				justify-content: center;
				border: 1px solid #ccc;
				border-bottom: none;
			}
			.right{
				height: 40px;
				display: flex;
				align-items: center;
				justify-content: flex-end;
				border-bottom: 1px solid #ccc;
			}
		}
		.detail_body{
			padding-left: 10px;
			.item{
				margin: 10px 0;
			}
		}
	}
}
.content_title{
	font-size: 16px;
	font-weight: 600;
	padding-bottom: 10px;
}
.page_content_tit{
	padding-bottom: 10px;
	display: flex;
	align-items: center;
}
.page_foot{
	display: flex;
	justify-content: flex-end;
}
.ad_item{
	display: flex;
	margin-bottom: 10px;
}

</style>
